package com.ruoyi.project.api;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.project.api.domain.SysStudent;
import com.ruoyi.project.service.ISysStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author C.fw
 * @version 1.0.0
 * @ClassName ApiController.java
 * @Description 对外接口实现
 * @createTime 2020年10月29日 16:48:00
 */

@RestController
@RequestMapping("/student")
public class ApiController extends BaseController {

    @Autowired
    private ISysStudentService sysStudentService;

    /**
     * 通过学生名获取学生列表信息
     */
    @RequestMapping(value = "/apilist")
    public R<List<SysStudent>> list(SysStudent student)
    {
        List<SysStudent> list = sysStudentService.selectSysStudentList(student);
        return R.ok(list);

    }
}
